package org.puremvc.as3.multicore.patterns.mediator
{
	import flash.events.Event;
	
	import mx.binding.utils.BindingUtils;
	import mx.binding.utils.ChangeWatcher;
	import mx.core.UIComponent;
	
	public class ReRendererMediator extends ReMediator
	{
		public function ReRendererMediator(mediatorName:String=null, viewComponent:Object=null, genericMediator:Boolean=false)
		{
			super(mediatorName, viewComponent, genericMediator);
			
			ChangeWatcher.watch(viewComponent, 'parent', function(e:Event):void {
				trace('parent: ' + UIComponent(viewComponent).parent);
			});
		}
		
	}
}